package mall.bean;

import java.io.Serializable;

public class Category implements Serializable {
	private static final long serialVersionUID = -7539955162656558652L;
	private long cid;
	private String name;
	private boolean isParent;
	private long parentId;
	private int level;
	private int sort;

	public Category() {
	}

	public Category(long cid, String name, boolean isParent, long parentId, int level, int sort) {
		super();
		this.cid = cid;
		this.name = name;
		this.isParent = isParent;
		this.parentId = parentId;
		this.level = level;
		this.sort = sort;
	}

	public boolean isParent() {
		return isParent;
	}

	public void setParent(boolean isParent) { // 它以为字段名是 parent
		this.isParent = isParent;
	}

	public long getCid() {
		return cid;
	}

	public void setCid(long cid) {
		this.cid = cid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getParentId() {
		return parentId;
	}

	public void setParentId(long parentId) {
		this.parentId = parentId;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	@Override
	public String toString() {
		return "Category [cid=" + cid + ", name=" + name + ", isParent=" + isParent + ", parentId=" + parentId
				+ ", level=" + level + ", sort=" + sort + "]";
	}

}
